/*
 * @Author: xuyunke xyk18697347312@163.com
 * @Date: 2024-11-19 16:43:30
 * @LastEditors: xuyunke xyk18697347312@163.com
 * @LastEditTime: 2024-11-20 18:57:34
 * @FilePath: \ruoyi\RuoYi-GW-Vue\src\api\system\maintenance.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询接口调用日志记录列表
export function listLog(query) {
  return request({
    url: '/monitor/middlewareLog/list',
    method: 'get',
    params: query
  })
}

// 查询接口调用日志记录详细
export function getLog(id) {
  return request({
    url: '/monitor/middlewareLog/' + id,
    method: 'get'
  })
}

// 查询人员列表
export function getUser() {
  return request({
    url: '/system/user/list',
    method: 'get'
  })
}
// 新增接口调用日志记录
export function addLog(data) {
  return request({
    url: '/monitor/middlewareLog',
    method: 'post',
    data: data
  })
}

// 修改接口调用日志记录
export function updateLog(data) {
  return request({
    url: '/monitor/middlewareLog',
    method: 'put',
    data: data
  })
}

// 删除接口调用日志记录
export function delLog(ids) {
  return request({
    url: '/monitor/middlewareLog/' + ids,
    method: 'delete'
  })
}
